package com.springcloudalibaba.serviceJournal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springcloudalibaba.bclass.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统邮件
 * </p>
 *
 * @author lixing_java@163.com
 * @since 2021-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_mail")
public class MailEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 创建者账号
     */
    @TableField("create_user_account")
    private String createUserAccount;

    /**
     * 创建者等级
     */
    @TableField("create_user_grade")
    private Integer createUserGrade;

    /**
     * 邮件类型（详见枚举）
     */
    @TableField("category")
    private Integer category;

    /**
     * 发送者邮箱
     */
    @TableField("sender")
    private String sender;

    /**
     * 接收者邮箱
     */
    @TableField("receiver")
    private String receiver;

    /**
     * 邮件标题
     */
    @TableField("subject")
    private String subject;

    /**
     * 邮件内容
     */
    @TableField("text")
    private String text;

    /**
     * 邮件附件地址，多个以逗号分隔
     */
    @TableField("attachment")
    private String attachment;


}
